MainEntity is a property of WebPage that points to the dominant Thing—such as a Product, Article, or Person—that the page is fundamentally about. By declaring a mainEntity, publishers resolve ambiguity for AI parsers and knowledge graph extractors, ensuring the central subject is correctly indexed rather than conflated with sidebar entities, related links, or navigational elements.
Glossary
MainEntity

What is MainEntity?
MainEntity is a Schema.org property that explicitly identifies the single, most prominent entity described on a web page, enabling search engines to disambiguate the page's primary topic from secondary or tangential content.
The property accepts a @id reference to a fully defined entity node within the same @graph block, establishing an explicit aboutness relationship. This is critical for entity salience optimization in generative engines: when an LLM retrieves a page for retrieval-augmented generation, a correctly specified mainEntity signals which entity's attributes and relationships should anchor the generated summary, reducing hallucination risk.
Core Characteristics of MainEntity
The mainEntity property is a critical signal for disambiguating a page's primary focus. It explicitly tells search engines and AI parsers which specific entity—be it a product, article, or person—is the central subject of the document, overriding any secondary content.
Primary Subject Disambiguation
The core function of mainEntity is to resolve ambiguity. On a page containing multiple entities (e.g., a blog post reviewing a Product that also mentions the Organization that makes it), this property identifies the single most prominent subject. This prevents AI models from confusing a supporting mention with the page's actual topic, ensuring the correct entity is indexed and cited in generative overviews.
Relationship to @id and @type
mainEntity does not define a new entity; it points to an existing one defined elsewhere in the JSON-LD graph. It expects a reference to a full entity node that already has an @type (e.g., Product, Article) and a unique @id.
- Syntax:
"mainEntity": {"@id": "#primary-product"} - Mechanism: This creates a directional link from the
WebPagenode to the subject node, establishing a clear parent-child relationship in the knowledge graph.
Impact on AI Overviews and Citations
Generative engines use mainEntity to select the definitive source for entity extraction. When an AI model synthesizes an answer, it prioritizes data anchored to the mainEntity of a page.
- Factual Grounding: The property acts as a confidence signal, telling the model that the information within the
mainEntitynode is the page's authoritative claim. - Citation Integrity: It reduces the risk of the AI citing a tangential entity mentioned in a sidebar or footer, preserving brand attribution accuracy.
Implementation Context: WebPage vs. ItemPage
mainEntity is a property of the WebPage type and its subtypes. Its usage is most critical on ItemPage, a schema type specifically designed for pages focused on a single entity.
- WebPage: Use when the page has a primary topic but isn't exclusively about it.
- ItemPage: The strongest signal that the page is entirely dedicated to the
mainEntity. This combination is highly effective for product detail pages, recipe pages, and individual event listings.
Distinction from 'About' and 'Mentions'
Schema.org provides a spectrum of properties to define a page's relationship to entities, each with a different semantic weight:
- mainEntity: The primary, most prominent entity.
- about: The general subject matter; less specific and can be a broader topic.
- mentions: A secondary or incidental reference to an entity.
Using
mainEntityinstead ofaboutfor the central topic provides a much stronger, machine-readable declaration of focus, directly influencing how knowledge graph nodes are connected.
Validation and Testing Protocol
To ensure correct implementation, validate your structured data using the Schema Markup Validator and Rich Results Test. Key checks include:
- The
mainEntityproperty must reference a valid @id that exists within the same@graphblock. - The referenced entity must have a valid @type.
- A page should have only one
mainEntityto avoid confusing parsers. - Test in Google Search Console to confirm the page is being indexed as the correct entity type.
Frequently Asked Questions
Clarifying the role and implementation of the MainEntity property in structured data for AI-driven search.
The MainEntity property is a Schema.org structured data attribute used to explicitly indicate the single, most prominent entity that a web page is primarily about. It functions as a disambiguation signal, telling search engines and AI parsers to ignore secondary or tangential content and focus their semantic understanding on the specified primary topic. This property is typically applied to the WebPage type and points to another entity, such as a Product, Article, Person, or Event. By isolating the core subject, MainEntity prevents AI models from confusing supporting details with the central topic, which is critical for accurate entity recognition and knowledge graph alignment.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Master these foundational Schema.org types and properties to build a robust entity graph that disambiguates your content for AI-driven search engines.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us