A tax refund happens when a taxpayer has paid more taxes throughout the year than they actually owe in taxes.
If you have tax liability of $5000 but have paid $6000 through payroll withholding, you would receive tax $1000 refund.