Refers to the academic field or the historical period itself, typically covering civilizations before the Middle Ages.
I'm majoring in ancient history at university.
This museum has many exhibits on ancient history.
Modern history, referring to more recent historical periods.
Compound of 古代 (kodai, 'ancient times') and 史 (shi, 'history').