Primary and secondary hyperaldosteronism are conditions where the body produces too much of the hormone aldosterone, leading to high blood pressure and electrolyte imbalances. Primary hyperaldosteronism occurs due to adrenal gland dysfunction, while secondary hyperaldosteronism develops as a result of underlying kidney or heart disease.