When was Quadrilaterals invented?

The concept of quadrilaterals has been around since ancient times, but the first formal definition of a quadrilateral was given by Euclid in his book Elements, which was written around 300 BC.