The kidneys are responsible for filtering blood and removing urea to produce urine.