The ectopic salivary gland refers to the presence of salivary gland tissue in an area other than the site where salivary glands normally exist. They often occur near the line connecting the external ear canal and the medial border of the clavicle. It is extremely rare to occur in the urogenital system. This paper retrospectively analyzed the clinicopathological data of a patient with ectopic salivary glands accidentally discovered due to testicular torsion. Patients are generally asymptomatic. If there is no fistula leading to the skin or mucosal surface, it is difficult to find clinically. The diagnosis depends on postoperative pathological examination. For ectopic salivary glands, surgery is required regardless of the location.