The series developed following the success of 1995 theatrical film The American President , for which Aaron Sorkin wrote the screenplay , and Martin Sheen played the White House Chief of Staff . The series developed following the success of 1995 theatrical film The American President , for which Aaron Sorkin wrote the screenplay , and in which Martin Sheen played the White House Chief of Staff .