Gamarra Herrera was born in Lima in 1958. He studied law at the National University of San Marcos. He studied for a Master's degree in Law from the National Defense University, funded by the United States Department of Defense. He is currently a professor at the Faculty of Law and Political Science at the National University of San Marcos. 