What it means
ませんでした is the polite past negative ending for verbs. It states that an action did not happen in the past and is suitable for polite speech and writing. Attach it to the verb's ます-stem, such as 読み + ませんでした for “did not read.” Its familiar counterpart is the past negative form ending in なかった.
Usage note
ありませんでした is the polite past negative form of あります and is used for the existence verb ある. Do not attach ませんでした directly to a dictionary-form verb; use the ます-stem instead.
How to use it
昨日は図書館で本を読みませんでした。
I did not read a book at the library yesterday.
昨日は図書館で本を読まなかった。
I did not read a book at the library yesterday.
