The subject of a sentence is the person or thing the sentence focuses on. The subject is a noun, pronoun, or gerund that does the action of a verb within a sentence.
For example, in the sentence 'I like to walk in the forest', "I" is the subject.