Brain natriuretic peptide (BNP) is a hormone primarily produced and secreted by the ventricles of the heart. It plays a crucial role in the endocrine regulation of kidney function by promoting sodium and water excretion, thereby helping to maintain fluid balance and blood pressure within the body.