The pivot pin and takedown pin secure the upper and lower receivers together. The pivot pin is located in the reader of the lower receiver and allows the upper receiver to pivot open. The takedown pin is in the front of the lower receiver and enables the upper and lower receivers to separate.