We pay before or after filing taxes, if we owe tax?

In spring, when I file my taxes for this year, if I end up owing tax, do I first e-file it, and then make a direct payment to IRS? Or I must first make the payment and then e-file?