The toponym Ghazni is known to have existed prior to the Islamic period. It is derived from the Iranian word ''Ganzak'' ("treasury"). Classical authors mention the name in various forms, including the Greek Gázaca (), and the Chinese Ho(k)-si(k)-na.