Valdepiélagos is a municipality of the Community of Madrid, Spain. It received the title of villa on 3 May 1801.