A brutal historical drama had an unexpected creative force behind it, linking a cult TV hit to one of the most influential filmmakers of the 2000s.