Summary:

Combat occurs between two political entities that are at war with each other. A civilization may be at war with another civ or with a city-state. Barbarians are always at war with all civilizations and city-states.
There are three major forms of combat: melee, ranged, and air combat. The first two occur throughout most of the game, while air combat doesn't happen (naturally) until somebody discovers flight.

Since it occurs so late in the game you needn't be concerned with how to conduct air combat when you begin play.