A rival is a person or group of people who are trying to do the same thing as someone else, and trying to do it better. They are "competing" against one another. Usually they are about equally good.
Competing in this way is called rivalry.
In sport, two teams may be rivals. This is a more friendly kind of rivalry.