In July 1856, Walker set himself up as president of Nicaragua, after conducting a farcical election. As ruler of Nicaragua, Walker then revoked the Transit Company's charter, claiming that it had violated the agreement, and granted use of the route back to Garrison and Morgan. Outraged, Vanderbilt successfully pressured the U.S. government to withdraw its recognition of Walker's regime. Walker had also scared his neighbors and American and European investors with talk of further military conquests in Central America. Vanderbilt financed and trained a military coalition of these states, led by Costa Rica, and worked to prevent men and supplies from reaching Walker. He also provided defectors from Walker's army with payments and free passage back to the U.S.