Squares from Lines

Can you find sets of four lines that enclose a square? (Besides horizontal and vertical lines, of course!)

If you've had some success, the next challenge is to explain how it's done. What strategies are needed when deciding on equations for the second pair of parallel lines?