We review theoretical developments in studies of dense matter and its phase structure of relevance to compact stars. Observational data on compact stars, which can constrain the properties of dense matter, are presented critically and interpreted.