you can buy the policy before or after closing, but you should at least pay for a title search before the closing.