The library's primary function is to serve as a bridge between programming languages (most notably Visual Basic for Applications, VBA, and .NET languages like C# and VB.NET) and the Office applications. It defines the objects, properties, methods, and events that constitute each application's programmable surface.