This research investigates how exoplanets form by analyzing the chemical fingerprints of their host stars. Using stellar abundances and galactic archaeology, the work explores how rocky material shapes planetary systems, whether stars consume planets, and how common Earth-like worlds may be throughout the Milky Way.