Deadwood is an American Western drama television series created, produced, and almost entirely written by David Milch. The series aired on the premium cable network HBO from 21 March 2004 to 27 August 2006, spanning three 12-episode seasons. The show is set in the 1870s in Deadwood, South Dakota, before and after the area's annexation by the Dakota Territory. The series charts Deadwood's growth from camp to town, incorporating themes ranging from the formation of communities to western capitalism. The show features a large ensemble cast, and many historical figures appear as characters on the show such as Seth Bullock, Al Swearengen, Wild Bill Hickok, Sol Star, Calamity Jane, Wyatt Earp, E. B. Farnum, Charlie Utter, and George Hearst. The plot lines involving these characters include historical truths as well as substantial fictional elements. Some of the characters are fully fictional, although they may have been based on actual persons. Deadwood received wide critical acclaim, particularly for Milch's writing and Ian McShane's co-lead performance.