What was Parthenon's main function?

It was the temple of Athena, the patron goddess of the city that was named after her.