text: The Kamakura shogunate was founded late in the 12th century after a long and bloody rivalry between two noble factions over control of the imperial court .
  
  ###
  
  Towards the end of the 1100s , the Kamakura shogunate was established .