The Silmarillion takes place during the Third Age of Middle Earth, after the destruction of the One Ring.
"The Silmarillion" is considered the pre-history of Middle Earth, consisting of the world building and creation thereof.