The process of designing and optimizing drug molecules to improve their efficacy, safety, and selectivity.