 Bonilla proved to be an even better friend to the banana companies than Sierra.Under Bonilla's rule, companies gained exemptions from taxes and permission to construct wharves and roads, as well as permission to improve interior waterways and to obtain charters for new railroad construction.He also successfully established the border with Nicaragua and resisted an invasion from Guatemala in 1906.