A Master–Detail relationship is basically a parent–child relationship, in which ‘Master’ represents the parent and other details represent the child. If the parent is deleted, then the child also gets deleted. Roll-up summary fields can only be created on Master records, which will calculate the SUM, AVG, and MIN of the child records.