PTP1B activity is increased in obesity and type 2 diabetes and is a major cause of insulin resistance. Here, PTPN1 is linked to obesity due to melanocortin 4 receptor deficiency.