Can you end a sentence with “with”?

Yes, a sentence can end with “with” (e.g., “What can I pair this wine with?”). In the past, writers were encouraged not to end a sentence with a preposition (e.g., “with,” “for,” “to”), but this guidance is outdated.

Sentences and clauses frequently end with a preposition when the object of the preposition is a relative pronoun (e.g., “whom,” “what”).