Ferrari 512 S is the designation for 25 sports cars built in 1969–70, with five-litre 12-cylinder ("512") engines, related to the Ferrari P sports prototypes. The V12-powered cars were entered in the 1970 International Championship for Makes by the factory Scuderia Ferrari and private teams. Later that year, modified versions resembling their main competitor, the Porsche 917, were called Ferrari 512 M. In the 1971 International Championship for Makes, the factory focused on the new Ferrari 312 PB and abandoned the 512 which was only entered by privateers. From 1972 onwards, the 512 was withdrawn from the world championship following a change in the regulations, and some 512s in private hands were entered in CanAm and Interserie races.