The initial filtering portion of a nephron is the renal corpuscle, located in the cortex, which is followed by a renal tubule that passes from the cortex deep into the medullary pyramids.
From the en.wikipedia.org
Filtration, which takes place at the renal corpuscle, is the process by which cells and large proteins are filtered from the blood to make an ultrafiltrate that eventually becomes urine.