The examples and perspective in this article deal primarily with North America and do not represent a worldwide view of the subject. (August 2020)
A courthouse or court house is a structure which houses judicial functions for a governmental entity such as a state, region, province, county, prefecture, regency, or similar governmental unit. A courthouse is home to one or more courtrooms, the enclosed space in which a judge presides over a court, and one or more chambers, the private offices of judges. Larger courthouses often also have space for offices of judicial support staff such as court clerks and deputy clerks.
The term is commonly used in the English-speaking countries of North America. In most other English-speaking countries, buildings which house courts of law are simply called "courts" or "court buildings". In most of continental Europe and former non-English-speaking European colonies, the equivalent term is a palace of justice (French: palais de justice, Italian: palazzo di giustizia, Portuguese: palácio da justiça).
In the United States, most counties maintain trial courts in a county-based courthouse, which also house other county government offices. The courthouse may be a part of a wider county government building or complex. The courthouse is usually located in the county seat, although large metropolitan counties may have satellite or annex offices for their courts.
In some cases, the building housing the courthouse may be named in some way or its function divided as between a judicial building and administrative office building. Philadelphia City Hall, for instance, serves as the seat of the legislative and executive functions of the consolidated city and county of Philadelphia, but most of its floor space is devoted to the Civil Division of the Philadelphia Court of Common Pleas. The Supreme Court of Pennsylvania shares space with three local governments and with the legislative and executive branches of the state government of Pennsylvania in Philadelphia City Hall in Philadelphia, the Pennsylvania State Capitol in Harrisburg, which it shares with the Pennsylvania General Assembly and the Governor of Pennsylvania, and the Pittsburgh City-County Building in Pittsburgh, which it shares with the governments of the City of Pittsburgh and of Allegheny County.
Many judges also officiate at civil marriage ceremonies in their courthouse chambers. In some places, the courthouse also contains the main administrative office for the county government, or when a new courthouse is constructed, the former one will often be used for other local government offices. Either way, a typical courthouse will have one or more courtrooms and a court clerk's office with a filing window where litigants may submit documents for filing with the court.
Each United States district court also has a federally owned building that houses courtrooms, chambers and clerk's offices. Many federal judicial districts are further split into divisions, which may also have their own courthouses. However, sometimes divisional court facilities are located in buildings that also house other agencies or offices of the United States government; for instance, the Mitchell H. Cohen United States Courthouse in Camden, New Jersey houses a United States post office as well as court facilities for the District of New Jersey.
Some branches of U.S. federal government courts are housed in rented office space in buildings housing commercial tenants; for instance, the United States Bankruptcy Court for the District of Delaware is located in an office building in Wilmington, Delaware, across the street from the main courthouse of the district court. The United States District Court for the Eastern District of California has a courthouse in Yosemite to hear misdemeanors and petty crimes for Yosemite National Park. Most of the United States courts of appeals are based in the main courthouses of the federal district court in the city in which they are seated.
The courthouse is part of the iconography of American life and is equivalent to the city hall as the symbol of the municipium in European free cities. Courthouses are often shown in American cinema (i.e. "Peyton Place", "Back to the Future", and "My Cousin Vinny"). They range from small-town rural buildings with a few rooms to huge metropolitan courthouses that occupy large plots of land. The style of American architecture used varies, with common styles including federal, Greek Revival, neoclassicist, and modern.
Due to the modalities involved in the hearing of complex cases, including civil, criminal, and family law disputes, the architecture of court buildings can present significant security challenges to enforcement officers. Architects typically use two main tools to mitigate security risks within the adjudicative space depending upon local needs, such as the proliferation of weapons: secure entrance vestibules and separation of circulation pathways and adjacencies within the footprint of the building. 
Secure entrance vestibules provide court staff the opportunity to screen visitors to the building for contraband, such as weapons and narcotics, as well as for unauthorized access. Mid size to larger courthouses often have separate entrances to the building for the public, prisoners, judges, and witnesses. These entrances may be monitored remotely from a central security station. In lower risk settings, the security screening may be more perfunctory and serve as an information desk to direct visitors to the various agencies and offices housed within the court building.
Once users of the court have entered the building through security screenings and access control checkpoints, the circulation systems of passageways through the building provide discrete pathways by which the public, court staff, and in-custody defendants access to courtrooms and other court services, such as attorneys, pretrial and probation services, and clerks' offices. The circulation pathways and adjacency diagrams designed for newer and larger courthouses often ensure that the only place the systems of circulation, including hallways, stairwells, and elevators overlap is within the monitored setting of the courtroom. This reduces the risk of unauthorized access to court materials by the public, such as court clerk record vaults, as well as the risk of in-custody defendants intimidating witnesses or jurors while being escorted through the public areas of the courthouse. 
For example, the Los Angeles Superior Court added such checkpoints to all entrances to its main courthouse in Downtown Los Angeles after a woman was shot and killed by her ex-husband in open court in September 1995. The Supreme Court of California ruled in 2002 that Los Angeles County (which at the time was responsible for maintaining the courthouses) was not liable to her three children under the California Government Tort Claims Act.
After the Oklahoma City bombing, the federal government proceeded to heavily fortify all large federal buildings, including many urban courthouses.
Some courthouses in areas with high levels of violent crime have redundant layers of security. For example, when the Supreme Court of California hears oral argument in San Francisco or Los Angeles, visitors must pass through one security checkpoint to enter the building, and another to enter the courtroom.
The Orange County, Vermont courthouse
The federal courthouse in Las Vegas
The DeKalb County Court House in Auburn, Indiana
The Cabell County Court House in Huntington, West Virginia
The Lowndes County Courthouse in Valdosta, Georgia
The Allegheny County Courthouse in Pittsburgh
The Avery County Courthouse in Newland, North Carolina
This section needs expansion. You can help by adding to it. (December 2010)
In Canada, each municipality constructs its own courthouse, or several in the case of large cities. In smaller communities the court is in the same building as the city hall and other municipal offices. In the past many courthouses also included the local prison.
One well-known court house in Canada is the Romanesque Revival (Neo-Romanesque) Old City Hall in Toronto, Ontario. Designed by E.J. Lennox, Old City Hall was completed in 1899 and has been functioning as a municipal building ever since. It was originally constructed to facilitate Toronto's City Council, legal and municipal offices and the city's courts however following the construction of the fourth city hall (adjacent to the third, on Queen Street) the building's purpose was limited to being solely a courthouse for the Ontario Court of Justice. The building can be described as Romanesque Revival due to multiple characteristics it shares with Romanesque architecture, despite being constructed seven centuries later in a completely different continent. These characteristics include the materiality in terms of large stone construction, the repetitive rhythmic use of windows containing various sized arches and barrel vaults directing attention towards them, decorated spandrels (wall section connecting arches) and the inclusion of gabled walls (pointed sections). Old City Hall has been designated a National Historical Site since 1989.
- "Homepage". Philadelphia Courts. Retrieved 29 April 2020.
- "Court of Common Pleas, Trial Division - Civil". Philadelphia Courts. Retrieved 29 April 2020.
- "The Court of Common Pleas, Orphans' Court Division". Philadelphia Courts. Retrieved 29 April 2020.
- "Camden Post Office". USPS Post Offices. Retrieved 2014-06-15.
- "Staff (Camden)". United States Bankruptcy Court District of New Jersey. Retrieved 2014-06-15.
- "Home". United States Bankruptcy Court District of Delaware. U.S. Bankruptcy Court for the District of Delaware. Retrieved 25 January 2017.
- Jesse McKinley (10 August 2009). "Spectacular Distractions Are the Perks of Judgeship". New York Times. Retrieved 2011-03-08.
- https://www.uscourts.gov/sites/default/files/u.s._courts_design_guide_2021.pdf Judicial Conference of the United States "U.S. Courts Design Guide" (2011).
- https://www.ncsc.org/courthouseplanning/needs-of-persons-with-disabilities/adjacency-and-circulation National Center for State Courts "Adjacency and Circulation" (2023).
- Kenneth Ofgang (21 May 2002). "State High Court Bars Suit Over Shooting at Downtown Courthouse". Metropolitan News-Enterprise. metnews.com. Retrieved 2011-03-08.
- Zelig v. County of Los Angeles, 27 27 Cal Sup Ct 1112 (Cal 4th 2002).
- "Toronto's Old City Hall". Toronto.ca. Archived from the original on 2012-08-25. Retrieved 2011-03-08.
- "Toronto's Third City Hall". Toronto.ca. Archived from the original on 2012-10-15. Retrieved 2011-03-08.