Walk the Line is a 2005 American biographical drama film directed by James Mangold. The screenplay, written by Mangold and Gill Dennis, is based on two autobiographies by the American singer-songwriter Johnny Cash: Man in Black: His Own Story in His Own Words and Cash: The Autobiography.