The juxtaglomerular apparatus is a specialized structure formed by the distal convoluted tubule and the glomerular afferent arteriole. It is located near the vascular pole of the glomerulus and its main function is to regulate blood pressure and the filtration rate of the glomerulus.