It is not possible to drive from California to Lima, Peru. The obstacle is not distance, borders, or road quality—it is the Pacific Ocean.
Even if you could ship your vehicle across the ocean, the Pan-American Highway—the network of roads linking the Americas—has a famous, impassable break: the Darién Gap. This 100-km (60-mile) stretch of dense, mountainous rainforest and swamp between Panama and Colombia has no roads, no ferries, and no infrastructure. It is a formidable barrier of jungle, rivers, and security risks (drug trafficking, guerrilla activity) that has never been bridged by a highway.
To transport a vehicle from North America to South America, you must use roll-on/roll-off (RoRo) shipping or container shipping from a port like Los Angeles, San Diego, or Long Beach to a South American port such as Callao (serving Lima). This involves:
For travelers, flying to Lima (approx. 8–10 hours from LAX with connections) and renting a car locally is infinitely more practical.