From the Wikipedia article:
Planet of the Apes is a 2001 American science fiction film directed by Tim Burton and starring Mark Wahlberg, Tim Roth, Helena Bonham Carter, Michael Clarke Duncan, Paul Giamatti, and Estella Warren. The sixth film produced in the Planet of the Apes franchise, it was loosely adapted from Pierre Boulle's 1963 novel of the same name and the 1968 film version. It tells the story of astronaut Leo Davidson crash-landing on a planet inhabited by intelligent apes. The apes treat humans as slaves, but with the help of an ape named Ari, Leo starts a rebellion.
Development for a Planet of the Apes remake started as far back as 1988 with Adam Rifkin. His project nearly reached the pre-production stage before being cancelled. Terry Hayes's script, titled Return of the Apes, would have starred Arnold Schwarzenegger, under the direction of Phillip Noyce. Oliver Stone, Don Murphy, and Jane Hamsher were set to produce. Creative differences ensued between Hayes and financier/distributor 20th Century Fox. Chris Columbus, Sam Hamm, James Cameron, Peter Jackson, and the Hughes brothers later became involved.
With William Broyles, Jr.'s script, Tim Burton was hired as director, and the film was put into active development. Lawrence Konner and Mark Rosenthal rewrote the script, and filming took place from November 2000 to April 2001. Planet of the Apes was released to mixed reviews, but was a financial success. Much criticism focused on the confusing plot and ending, although Rick Baker's prosthetic makeup designs were praised. Despite its financial success, 20th Century Fox chose not to produce a sequel, and later rebooted the franchise in 2011 with Rise of the Planet of the Apes.
In 2029, aboard the United States Air Force space station Oberon, Leo Davidson (Mark Wahlberg) works closely with primates who are trained for space missions.
His favorite simian co-worker is a chimpanzee named Pericles. With a deadly electromagnetic storm approaching the station, a small space pod piloted by Pericles is used to probe the storm. Pericles's pod heads into the storm and disappears.
Against his commanding officer's orders, Leo takes a second pod and goes in pursuit of Pericles. Entering the storm, Leo loses contact with the Oberon and crashes on a planet called Ashlar in the year 5021. He discovers that the world is ruled by humanoid apes who can speak human language and treat human beings as slaves.
Leo comes across a female chimpanzee named Ari (Helena Bonham Carter), who protests the awful treatment humans receive. Ari decides to buy Leo and a female slave named Daena (Estella Warren) to have them work as servants in the house of her father, Senator Sandar (David Warner).
Leo escapes his cage and frees other humans. Ari sees them, but Leo persuades her to join a human rebellion against the apes. General Thade (Tim Roth) and Colonel Attar (Michael Clarke Duncan) march ape warriors in pursuit of the humans. Leo discovers Calima (the temple of "Semos"), a forbidden, but holy, site for the apes.
Calima turns out to be the remains of the Oberon, Leo's space station, which has crashed on the planet's surface and looks ancient (the name Calima coming from the sign "CAution LIve aniMAls", the relevant letters being the only ones not covered in dust).
According to the computer logs, the station has been there for thousands of years. Leo deduces that when he entered the vortex he was pushed forward in time, while the Oberon, searching after him, was not, crashing on the planet long before he did.
The Oberon 's log reveals that the apes on board, led by Semos, organized a mutiny and took control of the vessel after it crashed. The human and ape survivors of the struggle left the ship and their descendants are the people Leo has encountered since landing. In the present, a battle ensues between the humans and the apes.
A familiar vehicle descends from the sky and is identified immediately by Leo as the pod piloted by Pericles, the chimpanzee astronaut. Pericles was pushed forward in time as Leo was, and had just now found his way to the planet. When Pericles lands, the apes interpret his landing as the return arrival of Semos, the first ape, who is their god. They bow, and hostilities between humans and apes disappear.
Pericles then runs into the Oberon and Leo runs after him, followed by General Thade. Inside, Thade and Leo wrestle, with Pericles trying to help Leo, only to be thrown hard against a wall. Thade gets hold of Leo's gun, but does not understand how to use it at first.
Seeing that Thade is in the pilot's deck, Leo closes the automatic door of the entrance, trapping Thade as he shoots the gun, the bullets ricocheting off the door harmlessly.
Thade thrashes around to escape, but after all attempts to do so fail, he finally gives up. Leo then decides that it is time for him to leave the Planet of the Apes, so he gives Pericles to Ari, with her promising to look after him, also saying farewell to Daena.
Leo climbs aboard Pericles's undamaged pod and uses it to travel back in time through the same electromagnetic storm. Leo ends up crashing in front of the Lincoln Memorial in Washington, D.C. on Earth. He looks up at the Memorial, and sees it is now a monument in honour of General Thade. A swarm of police officers, firefighters, and news reporters descend on Leo, but on closer inspection, they are all apes.