For creating Many-to-Many relationship, we need Junction object. It is a custom object which can link one instance of a record to many children, and each child can equally be linked too. Junction Object have two master-detail relationships to two different record types