Hash tables enable O(1) lookup by using a hash function that converts a key into an index in an array. When searching for a key, the hash function is applied to get the index, then the array is accessed directly at that index. If the key stored at that index matches the searched key, the value is returned immediately. This process takes constant time because array access and hash computation are both fast operations. If keys collide, additional steps handle the collision, but in the simple case shown, the key matches directly. This is why hash tables are very efficient for quick lookups.