Short answer
The early Buddhist schools came first. Mahayana emerged later, within the wider Buddhist world, and it was not a rival sect from the start. The word Hinayana is a disputed label for the early schools, which is why scholars now avoid it.
What Hinayana means
Hinayana is Sanskrit for “lesser vehicle” or “inferior vehicle.” Mahayana writers used the word to describe other Buddhist schools, and many scholars treat it as disparaging. Some translators render it as “lower vehicle” and argue the word is less insulting than it sounds, but most modern writers avoid it.
Mahayana means “great vehicle.” It is the term Mahayana Buddhists used for their own tradition.
What the early schools were
Before Mahayana texts appeared, Buddhism was divided into a number of early schools, each with its own monastic community, texts and interpretations. Only one of these schools, Theravada, is still a major living tradition in its own right. Theravada means “the teaching of the elders,” and it is the tradition of Sri Lanka and much of Southeast Asia.
Theravada is not a perfect substitute for the whole category. It is one early school among several, and the others did not survive as major traditions.
When Mahayana appeared
The earliest Mahayana sutras are generally dated to around the 1st century BCE or somewhat later. The dates are debated, and the evidence is indirect. Many Mahayana texts were composed in Sanskrit and later translated into Chinese and Tibetan.
Many scholars now see Mahayana as a movement that worked within the wider early Buddhist world, not as a separate sect from the start. Scholars have also proposed several theories about where it began, including links to particular monastic groups. None of these theories is settled.
So which is older?
If “older” means the early schools, then yes, they came first. The Buddha’s teaching came before both. Scholars generally date the Buddha’s life roughly to the fifth and fourth centuries BCE, though the dates are debated. Mahayana came later as a movement and as a body of texts.
Theravada and Mahayana today
Theravada is practiced mainly in Sri Lanka, Myanmar, Thailand, Cambodia and Laos. Mahayana traditions, including Chinese, Korean, Japanese, Vietnamese and Tibetan Buddhism, are found across East Asia and the Himalayan region.
Someone who asks what is Theravada Buddhism in simple words will find that the tradition is often described as centered on the Pali Canon and on the path of individual awakening. Mahayana traditions are often described as emphasizing the bodhisattva ideal and compassion. Readers asking why is Mahayana Buddhism important will find that its influence on the art, ethics and practice of many East Asian communities is a major part of the answer.
Buddhism began in ancient India, and the question where did Buddhism originate points to the same starting place for both traditions.