Lignin is a complex organic polymer that makes cell walls both hard (rigid) and strong (resistant to compression and deformation). It provides structural support and waterproofing to plant cell walls, especially in xylem tissue. The option 'both (1) and (2)' correctly captures both of these properties.