Pharmacology of drugs affecting the kidneys involves the study and analysis of drugs that impact the structure and function of the kidneys, including their role in fluid and electrolyte balance, blood pressure regulation, and various renal disorders.