Coca or Villa de Coca is a Spanish municipality in the province of Segovia, in the autonomous community of Castilla y León, Spain.