General practitioners are in an ideal place to assist in the stabilising of the health of those in custody and maintenance of the health of those released from prison.