All ratites evolved from prehistoric flying birds, and tinamous are the closest living relative of these birds.
Among flightless birds known as ratites, all share a common evolutionary history with ancient flying ancestors, and among these, tinamous are the closest surviving relatives.