According to the Declaration of Independence, from where do governments derive the right to govern?

“ … Governments are instituted among Men, deriving their just powers from the consent of the governed …”

From en.wikipedia.org/wiki/United_States_Declaration_of_Independence

The Declaration of Independence states that governments derive their right to govern from the consent of the governed.