Liber is the nominative case, while librum is the accusative case.
The nominative being used for the subject of the sentence. The person or thing 'doing' the action. Here, Marcus is in the nominative.
The accusative being the direct object of the sentence. The person or thing being 'acted' upon.