The municipality was established on 6 November 1994, when the former Municipality of Sežana was dissolved into four smaller municipalities (Divača, Hrpelje–Kozina, Komen, and Sežana).
Občina Divača je ena od občin v Republiki Sloveniji.