The Spanish language is known by two names -
español and
castellano - by those who speak it. This is because
both are
official names of the language. Which name you choose to use for the language you speak very much depends on the country, and perhaps the region, where you live.
This topic has already been discussed in other threads.