The pulmonary valve is one of the four main valves in the heart. It is located between the right ventricle and the pulmonary artery. Its primary function is to control blood flow from the right ventricle to the pulmonary artery, ensuring that blood flows in one direction towards the lungs for oxygenation.