Abstract: An improved process is provided for the preparation of Ledipasvir and its pharmaceutically acceptable salts or solvates thereof, which is useful as an antiviral agent. This disclosure also provides a process for the preparation of key intermediates of Ledipasvir.