When was democracy created?

Direct democracy was created at around 510 B.C. in Athens.