After 1956, when Trujillo saw that Castro was gaining ground, he started to support Batista with money, planes, equipment, and men. Trujillo, convinced that Batista would prevail, was very surprised when Batista showed up as a fugitive after he had been ousted. Trujillo kept Batista until August 1959 as a "virtual prisoner". Only after paying US$3–4 million could Batista leave for Portugal, which had granted him a visa.