In a business context, foreign keys work by enforcing a relationship between two tables. For example, in a sales database, one table might store customer information and another table might store order details. The foreign key in the order details table would link back to the primary key in the customer information table, ensuring that each order is associated with an existing customer.