How to Build a Fire Without Matches?

People who would go camping a long time ago did not use matches to start a fire. They would rub two sticks together until fire was produced which was cool but I know this process took awhile.