For starters, the government can regulate the imported goods coming from other countries to protect the sellers inside the country. The government regulates the imports by Charging Tariffs (importing Taxes) or by imposing taxes. The government can also import inside the country when there is a shortage to meet the demand.
Hope this helps.