What is the connection between consanguinity and genetic diseases

New research has unraveled the links between consanguinity and genetic diseases, but what exactly is the connection?