What is a derby in soccer?

I believe it's when 2 teams from the same town or the local area play each other.