It helps in creating a many-to-many relationship between two objects in Salesforce. Using many-to-many relationship you can connect each record of an object to be linked with multiple records of other objects and vice versa. Junction object helps us in connecting the two selected objects with each other.
relationships in Salesforce