Most Spanish nouns end in -o or -a. Nouns that end in -o are generally masculine. Nouns that end in -a are generally feminine. There are many exceptions.
Some examples: