In late 1918, Spain attempted unsuccessfully to prevent the spread of the Spanish flu by imposing border controls, roadblocks, restricted rail travel, and a maritime cordon sanitaire prohibiting ships with sick passengers from landing, but by then the epidemic was already in progress.