Cartago, Costa Rica
Bonilla was baptized in Cartago, Costa Rica on September 30, 1763. His parents were Sergeant Major Andrés de Bonilla y Sáenz and María Gertrudis de Laya-Bolívar y Miranda. José Santiago de Bonilla y Laya-Bolívar, president of Costa Rica's governing junta in 1822, was his brother.