Answer:
Seventeen (17) years is the length of time that the historical Macbeth (d. August 15, 1057) ruled over Scotland.
Specifically, he succeeded the previous king, Duncan I (d. August 14, 1040). Both Duncan and he are historical figures. The play's information about the conflict between the two kings draws heavily upon "Holinshed's Chronicles" of 1587.