The difficulty is a global setting that controls how much computation is required to produce a proof of work.
It is a very significant aspect of a cryptocurrency protocol, to eliminate unwanted speed fluctuations in the production - minting of new coins.