The compounds pyridine and planar cyclooctatetraene are aromatic and anti-aromatic respectively. For a compound to be aromatic, it must be cyclic, planar. It must contain $(4 n+2) \pi$ electrons, where $n$ is any whole number.
Antiaromatic compounds are cyclic compounds with a $\pi$ electron system that has higher energy due to the presence of $4 n$ delocalised electrons in it.